package net.sx.minemodule.mvp.item;

import com.kedll.library.mvp.BaseItem;

import net.sx.minemodule.R;
import net.sx.minemodule.mvp.model.MineMedalListModel;

/**
 * 奖牌明细item
 */
public class MedalListItem extends BaseItem<MineMedalListModel> {

    public MedalListItem(MineMedalListModel data) {
        super(data);
    }

    @Override
    public int getLayout() {
        return R.layout.mine_item_medal_list;
    }

    public String getCreateTime() {
        return getData().getCreateTime();      //奖牌更新时间
    }

    public String getMedalNum() {
        return getData().getMedalNum();        //奖牌数量
    }

    public String getMedalType() {
        return getData().getMedalType();       //获取方式 0 购物 1 兑换
    }

    public String getInOrOut() {
        return getData().getInOrOut();         //获得奖牌或者消耗奖牌
    }

    public String getMemberId() {
        return getData().getMemberId();        //用户id
    }
}
